package com.retail.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.retail.common.core.annotation.Excel;
import com.retail.common.core.web.domain.BaseEntity;

/**
 * 订单对象 t_order
 *
 * @author retail
 * @date 2024-02-27
 */
public class TOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Integer orderId;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;
    private String userName;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderCode;

    /** 订单创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 订单状态 1.待付款2.已付款3.已发货4.已完成5.已关闭6.退款中7.退款成功8.退款失败9.取消订单 */
    @Excel(name = "订单状态 1.待付款2.已付款3.已发货4.已完成5.已关闭6.退款中7.退款成功8.退款失败9.取消订单")
    private Integer orderStatus;

    /** 备注 */
    @Excel(name = "备注")
    private String remake;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDel;
    private String skuName;
    private BigDecimal orderPrice;
    private BigDecimal sumPrice;

    public BigDecimal getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(BigDecimal sumPrice) {
        this.sumPrice = sumPrice;
    }

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getRemake() {
        return remake;
    }

    public void setRemake(String remake) {
        this.remake = remake;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("orderId", getOrderId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("orderCode", getOrderCode())
                .append("orderTime", getOrderTime())
                .append("orderStatus", getOrderStatus())
                .append("remake", getRemake())
                .append("isDel", getIsDel())
                .append("skuName", getSkuName())
                .append("orderPrice", getOrderPrice())
                .toString();
    }
}
